// PlaneList.h: interface for the CPlaneList class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PLANELIST_H__95519D78_0FDC_458F_A265_AD3B77069291__INCLUDED_)
#define AFX_PLANELIST_H__95519D78_0FDC_458F_A265_AD3B77069291__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CD3DPlane;

class PLANELIST
{
public:
	PLANELIST* pPreNode;
	PLANELIST* pNextNode;

	CD3DPlane* pPlane;

	PLANELIST() {
		pPreNode = NULL;
		pNextNode = NULL;
		pPlane = NULL;
	}

	~PLANELIST() 
	{ 
		Clear();
	}

	void Clear() {
		
	}
};

class CPlaneList  
{
public:
	PLANELIST* pFirst;
	PLANELIST* pLast;
	int TotNum;

	CPlaneList();
	virtual ~CPlaneList();
	void Clear();

	BOOL AddPlane(CD3DPlane* pplane);
	BOOL DelPlane(CD3DPlane* pplane);
	PLANELIST* FindPlane(CD3DPlane* pplane);

	void DestroyAllPlane();
};

#endif // !defined(AFX_PLANELIST_H__95519D78_0FDC_458F_A265_AD3B77069291__INCLUDED_)
